package com.spring.cn.config.autowire;

/**
 * @author liangd
 * date 2020-11-13 16:15
 * code
 */
public class PersonBean {
    /**
     * 姓名
     */
    private String name;
    /**
     * 地址
     */
    private AddressBean addressBean;
    /**
     * 车辆信息
     */
    private CarBean carBean;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AddressBean getAddressBean() {
        return addressBean;
    }

    public void setAddressBean(AddressBean addressBean) {
        this.addressBean = addressBean;
    }

    public CarBean getCarBean() {
        return carBean;
    }

    public void setCarBean(CarBean carBean) {
        this.carBean = carBean;
    }

    @Override
    public String toString() {
        return "PersonBean{" +
                "name='" + name + '\'' +
                ", addressBean=" + addressBean +
                ", carBean=" + carBean +
                '}';
    }
}
